import http from '@/util/http'

export function allImageType () {
  return http.get('/imageType/list')
}

export function delImageType (id) {
  return http.delete(`/imageType?id=${id}`)
}

export function repeatImageType (params) {
  return http.get(`/imageType/repeat?${params}`)
}

export function imageTypeList (search, current, pageSize) {
  return http.post(`/imageType/get?pageNo=${current}&pageSize=${pageSize}`, search)
}

export function addImageType (data) {
  return http.post('/imageType', data)
}

export function updateImageType (data) {
  return http.put('/imageType', data)
}
